package com.boboPlanet.user.constants;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2023/6/18
 * @Company planet
 **/
public class UserMiddleConstants {

    public static final String CREATE_INDEX_TEST = "{\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"id\":{\n" +
            "        \"type\": \"long\"\n" +
            "      },\n" +
            "      \"name\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"email\":{\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"info\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\"\n" +
            "      },\n" +
            "      \"age\": {\n" +
            "        \"type\": \"integer\"\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";


    public static final String PLANET_USER_MIDDLE_LOG_INDEX = "planet_user_middle_serve_log_index";

    public static final String PLANET_USER_MIDDLE_LOG_INDEX_DSL = "{\n" +
            " \"mappings\": {\n" +
            "   \"properties\": {\n" +
            "     \"host\": {\n" +
            "       \"type\": \"keyword\",\n" +
            "       \"copy_to\": \"{log_all}\"\n" +
            "     },\n" +
            "     \"url\": {\n" +
            "       \"type\": \"keyword\",\n" +
            "       \"copy_to\": \"{log_all}\"\n" +
            "     },\n" +
            "     \"requestParam\": {\n" +
            "       \"type\": \"keyword\"\n" +
            "     },\n" +
            "     \"level\":{\n" +
            "       \"type\": \"keyword\"\n" +
            "     },\n" +
            "     \"levelValue\":{\n" +
            "       \"type\": \"keyword\",\n" +
            "       \"index\": false\n" +
            "     },\n" +
            "     \"timestamp\":{\n" +
            "       \"type\": \"date\"\n" +
            "     },\n" +
            "     \"threadName\":{\n" +
            "       \"type\": \"keyword\",\n" +
            "       \"index\": false\n" +
            "     },\n" +
            "     \"message\":{\n" +
            "       \"type\": \"text\",\n" +
            "       \"analyzer\": \"ik_max_word\",\n" +
            "       \"copy_to\": \"{log_all}\"\n" +
            "     },\n" +
            "     \"traceId\":{\n" +
            "       \"type\": \"keyword\",\n" +
            "       \"copy_to\": \"{log_all}\"\n" +
            "     },\n" +
            "     \"version\":{\n" +
            "       \"type\": \"integer\",\n" +
            "       \"index\": false\n" +
            "     },\n" +
            "     \"loggerName\":{\n" +
            "       \"type\": \"keyword\",\n" +
            "       \"index\": false\n" +
            "     },\n" +
            "     \"log_all\":{\n" +
            "       \"type\": \"text\",\n" +
            "       \"analyzer\": \"ik_max_word\"\n" +
            "     }\n" +
            "   }\n" +
            "  } \n" +
            "}";

}
